﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PostAuthor.ascx.cs" Inherits="Modules_Posts_Controls_PostAuthor" %>
<%@ Register TagPrefix="avg" Namespace="Avg.Controls" Assembly="SmartPager" %>
<div class="archive">
    <h3>Tác giả: 
        <%=AuthorName%>
        <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
        <g:plusone size="medium"></g:plusone>
        <div class="fb-like" data-href="<%=Wp.BLL.TblOptionManager.CreateInstant().GetDomainName() %>" data-send="true" data-layout="button_count"
            data-width="450" data-show-faces="true">
        </div>
    </h3>
    <ul class="posts">
        <asp:Repeater ID="rpt" runat="server">
            <ItemTemplate>
                <li>
                    <div class="cover">
                        <a title="<%#Eval("Title") %>" rel="bookmark" href="<%#UrlBuilder.GetNewsDetail(Eval("TextId").ToString(),Eval("CreatedDate")) %>">
                            <img alt="<%#Eval("Title") %>" src="<%#UrlBuilder.GetImage(Eval("ImageUrl").ToString(),160,120,true) %>"
                                style="width: 160px; height: 120px;" /></a>
                    </div>
                    <div class="postcontent">
                        <h2 class="title">
                            <a title="<%#Eval("Title") %>" href="<%#UrlBuilder.GetNewsDetail(Eval("TextId").ToString(),Eval("CreatedDate")) %>">
                                <%#Eval("Title") %></a></h2>
                        <div class="meta">
                            <span class="cat_icon"><a rel="Author" title="View all posts of <%=AuthorName%>"
                                href="<%#UrlBuilder.GetCategory(Eval("Slug").ToString()) %>">
                                <%#Eval("TermTaxonomyName")%></a></span> <span class="date_icon">
                                    <%#FormatString.DateTimeToString(Eval("ModifiedDate").ToString()) %></span>
                            <span class="comm_icon"><a title="Jump to the comments" href="<%#UrlBuilder.GetNewsDetail(Eval("TextId").ToString(),Eval("CreatedDate")) %>#commentspost">
                                <%#Wp.BLL.TblCommentsManager.CreateInstant().NumCommentOfPost(Eval("Id").ToInt()) %> bình luận</a></span>
                            <%#GetCodeEdit(Eval("Id")) %>
                        </div>
                        <p>
                            <%#FormatString.SplitString( Eval("Summary"),320) %>
                        </p>
                    </div>
                    <div class="cleaner">
                        &nbsp;
                    </div>
                </li>
            </ItemTemplate>
        </asp:Repeater>
    </ul>
    <div class="cleaner">
        &nbsp;
    </div>
    <div class="tablenav">
        <div class="tablenav-pages">
            <avg:SmartPager ID="smartPager1" runat="server" Visible="false" />
        </div>
    </div>
    <%--  <div class="navigation">
        <div class="floatleft">
        </div>
        <div class="floatright">
            <a href="/category/tin-tuc/gia-dinh-phat-tu-viet-nam/">
                Bài viết mới →</a></div>
    </div>--%>
    <div class="cleaner">
        &nbsp;
    </div>
</div>
